package demoMod.stsconsole.commands;

import demoMod.stsconsole.ConsoleEntry;
import demoMod.stsconsole.interfaces.ISubscriber;

import java.util.Scanner;

public class ShowSubscribers extends AbstractCommand {
    @Override
    public void execute(String[] args, Scanner sc) {
        for (ISubscriber subscriber : ConsoleEntry.subscribers) {
            System.out.println(subscriber.getClass().getSimpleName());
        }
    }

    @Override
    public boolean requiredPrompt(String currentPrompt) {
        return true;
    }
}
